<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Membres
 *
 * @author charly
 */
class Membres implements Page{
    public function main($arg=null) {
        if (Session::getInstance()->sessionCheck()) {
            $S = Template::getSmarty();
            $list = Database::select("Compte", "avatar, pseudo", "id <> ".$_SESSION['id']);
            $S->assign("liste", $list);
            $S->display(Template::getPath("Membres"));
        } else {
            header("Location: /index.php/");
        }
    }
}
?>
